package com.linrui.org.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.linrui.basic.domain.BaseDomain;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrui
 * @since 2022-11-01
 */
public class Department extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 部门编号
     */
    private String sn;
    /**
     * 部门名称
     */
    private String name;
    /**
     * 部门的上级分类层级id
     */
    private String dirPath;
    /**
     * 部门状态，0正常，1禁用
     */
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    private Employee manager;
    /**
     * 上级部门
     */
    private Department parent;
    private Shop shop;

    private List<Department> children;

    public List<Department> getChildren() {
        return children;
    }

    public void setChildren(List<Department> children) {
        this.children = children;
    }

    public Employee getManager() {
        return manager;
    }

    public void setManager(Employee manager) {
        this.manager = manager;
    }

    public Department getParent() {
        return parent;
    }

    public void setParent(Department parent) {
        this.parent = parent;
    }

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDirPath() {
        return dirPath;
    }

    public void setDirPath(String dirPath) {
        this.dirPath = dirPath;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }


    @Override
    public String toString() {
        return "Department{" +
        ", id=" + id +
        ", sn=" + sn +
        ", name=" + name +
        ", dirPath=" + dirPath +
        ", state=" + state +
        "}";
    }
}
